NULL = 

AUTOMAKE_OPTIONS = subdir-objects

SUBDIRS = \
	po \
	$(NULL)

AM_CPPFLAGS = \
	$(GPS_CFLAGS) \
	-include $(CONFIG_HEADER) \
	$(NULL)

BUILT_SOURCES = src/gps.vala.stamp

bin_PROGRAMS = gps

gps_VALASOURCES = \
	src/mainwindow.vala \
	$(NULL)

gps_SOURCES = \
	$(gps_VALASOURCES:.vala=.c) \
	$(gps_VALASOURCES:.vala=.h) \
	$(NULL)

src/gps.vala.stamp: $(gps_VALASOURCES)
	$(VALAC) -C --pkg gtk+-2.0 --basedir $(top_srcdir) $^
	touch $@

gps_LDADD = \
	$(GPS_LIBS) \
	$(NULL)

EXTRA_DIST = \
	intltool-extract.in \
	intltool-update.in \
	intltool-merge.in \
	$(gps_VALASOURCES) \
	src/gps.vala.stamp \
	$(NULL)

DISTCLEANFILES = \
	intltool-extract \
	intltool-update \
	intltool-merge \
	po/.intltool-merge-cache \
	$(NULL)

